package com.siss.tenancy.elastic.service;


import com.siss.tenancy.elastic.dao.SissPersonMapper;
import com.siss.tenancy.elastic.entity.SissPerson;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

@Service
public class SissPersonService extends BaseService<SissPersonMapper, SissPerson>{

    public List<SissPerson> selectBySaIds(List<String> saIds){
        Example example = new Example(SissPerson.class);
        Example.Criteria criteria = example.createCriteria();
        criteria.andIn("saId",saIds);
        return selectByExample(example);
    }

    public Integer testSeata(Integer noTrans) {
        return mapper.testSeata(noTrans);
    }
}
